const express = require('express')
const cors = require('cors')

const app = express()

app.use(cors())

app.get('/', (req, res) => {
  setTimeout(() => {
    res.json({a: 1})
  }, 2000)
})

app.listen(3001, () => {
  console.log('server is listen at 3001')
})
